home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / libx11 / include / x11 / xaw / menubutton.h < prev    next >
C/C++ Source or Header  |  1999-01-01  |  3KB  |  87 lines

  1. /*
  2.  * $XConsortium: MenuButton.h,v 1.7 89/12/11 14:57:44 kit Exp $
  3.  *
  4.  * Copyright 1989 Massachusetts Institute of Technology
  5.  *
  6.  * Permission to use, copy, modify, distribute, and sell this software and its
  7.  * documentation for any purpose is hereby granted without fee, provided that
  8.  * the above copyright notice appear in all copies and that both that
  9.  * copyright notice and this permission notice appear in supporting
  10.  * documentation, and that the name of M.I.T. not be used in advertising or
  11.  * publicity pertaining to distribution of the software without specific,
  12.  * written prior permission.  M.I.T. makes no representations about the
  13.  * suitability of this software for any purpose.  It is provided "as is"
  14.  * without express or implied warranty.
  15.  *
  16.  * M.I.T. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
  17.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL M.I.T.
  18.  * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  19.  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
  20.  * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 
  21.  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  22.  */
  23.  
  24. /***********************************************************************
  25.  *
  26.  * MenuButton Widget
  27.  *
  28.  ***********************************************************************/
  29.  
  30. /*
  31.  * MenuButton.h - Public Header file for MenuButton widget.
  32.  *
  33.  * This is the public header file for the Athena MenuButton widget.
  34.  * It is intended to provide an easy method of activating pulldown menus.
  35.  *
  36.  * Date:    May 2, 1989
  37.  *
  38.  * By:      Chris D. Peterson
  39.  *          MIT X Consortium 
  40.  *          kit@expo.lcs.mit.edu
  41.  */
  42.  
  43. #ifndef _XawMenuButton_h
  44. #define _XawMenuButton_h
  45.  
  46. #include <X11/Xaw/Command.h>
  47.  
  48. /* Resources:
  49.  
  50.  Name             Class        RepType        Default Value
  51.  ----             -----        -------        -------------
  52.  background         Background        Pixel        XtDefaultBackground
  53.  bitmap             Pixmap        Pixmap        None
  54.  border             BorderColor    Pixel        XtDefaultForeground
  55.  borderWidth         BorderWidth    Dimension    1
  56.  callback         Callback        Pointer        NULL
  57.  cursor             Cursor        Cursor        None
  58.  destroyCallback     Callback        Pointer        NULL
  59.  font             Font        XFontStruct*    XtDefaultFont
  60.  foreground         Foreground        Pixel        XtDefaultForeground
  61.  height             Height        Dimension    text height
  62.  highlightThickness  Thickness        Dimension    2
  63.  insensitiveBorder   Insensitive    Pixmap        Gray
  64.  internalHeight         Height        Dimension    2
  65.  internalWidth         Width        Dimension    4
  66.  justify         Justify        XtJustify    XtJustifyCenter
  67.  label             Label        String        NULL
  68.  mappedWhenManaged   MappedWhenManaged    Boolean        True
  69.  menuName            MenuName           String          "menu"
  70.  resize             Resize        Boolean        True
  71.  sensitive         Sensitive        Boolean        True
  72.  width             Width        Dimension    text width
  73.  x             Position        Position    0
  74.  y             Position        Position    0
  75.  
  76. */
  77.  
  78. #define XtNmenuName "menuName"
  79. #define XtCMenuName "MenuName"
  80.  
  81. extern WidgetClass     menuButtonWidgetClass;
  82.  
  83. typedef struct _MenuButtonClassRec   *MenuButtonWidgetClass;
  84. typedef struct _MenuButtonRec        *MenuButtonWidget;
  85.  
  86. #endif /* _XawMenuButton_h --  DON'T ADD STUFF AFTER THIS */
  87.